package org.xiaov.bean.result;

import org.xiaov.http.HttpCode;

import java.io.Serializable;

/**
 * <p>
 * 封装好的结果集
 * </p>
 *
 * @author xiaovcloud
 * @version：1.0
 * @since 2021/2/26 12:47
 */
@Deprecated
public final class SuccessApiResult<T> extends ApiResult implements Serializable {

    private static final long serialVersionUID = 1L;

    public SuccessApiResult() {
        this(null);
    }

    public SuccessApiResult(T data) {
        this.code = HttpCode.HTTP_OK.getValue();
        this.data = data;
    }

    private T data;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
